package org.lee.springcloud.consul.controllers;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jackielee
 * @version 1.0
 * @description HelloController
 * @date 2021/3/15
 **/
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello(@Value("${server.port}") int port){
        return "hello consul from " + port;
    }
}
